package com.alib.springcloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

@Component //作为组件
@FeignClient(value = "CLOUD-PROVIDER-PAYMENT") // 连接eureka ，读取资源
public interface PaymentServiceOpenFeign {
    //这个接口是 服务注册端的 ， 因为是 openfeign ，所以可以详细到mvc的注解
    @GetMapping(value = "/payment/timeout")
    public String getPaymentTimeout();

}
